package projeto.pitaqueiro;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;


public class MenuInformaArquivo {
	private  JFileChooser chooser;
	
	public MenuInformaArquivo(){
		
		 chooser = new JFileChooser();
		
	 
     if (chooser.showOpenDialog(null) != JFileChooser.APPROVE_OPTION) {
    	 JOptionPane.showMessageDialog(null, "Voce aperou o botao Cancelar");
         
         System.exit(0);
     }
     
     
	}
	
	public  String caminho(){
		return chooser.getSelectedFile().getAbsolutePath();
	}
	
	

	
}
